import { request } from "@/utils/request";

export function addDept(params: Object) {
  return request({
    url: "api/office/addOffice.php",
    method: "GET",
    params,
  });
}
export function getDept() {
  return request({
    url: "api/office/getOffice.php",
    method: "GET",
   
  });
}

export function GetDeptInfo(params: any) {
  return request({
    url: `api/office/getOneOffice.php`,
    method: "GET",
    params,
  });
}
export function EditDeptInfo(params: any) {
  return request({
    url: `api/office/updateOffice.php`,
    method: "GET",
    params,
  });
}
export function DelDept(params: any) {
  return request({
    url: `api/office/delOffice.php`,
    method: "GET",
    params,
  });
}
